/* *****************************************************************************
 * JFab (http://code.google.com/p/jfab)
 * Copyright (c) 2011 JFab.org
 * Admin jfab@jeffreythompson.net
 *
 * See the file "LICENSE.txt" for information on usage and redistribution of
 * this file, and for a DISCLAIMER OF ALL WARRANTIES.
 * *****************************************************************************/


package org.jfab.core.io;

import org.jfab.core.model.CGObject;

import java.io.Writer;


/**
 * Defines methods required by a code generator object writer.
 *
 * @param  <T>  Code generator object type.
 */
public interface CGWriter<T extends CGObject>
{
    /**
     * Write a code generator object.
     *
     * @param  writer    Writer.
     * @param  cgObject  Code generator object.
     */
    void write(Writer writer, T cgObject);
}
